package com.hy.controller;

import com.hy.service.LoginService;
import com.hy.service.impl.LoginServiceImpl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class LoginController {
    private LoginService loginService = new LoginServiceImpl();

    public void selectLogin(HttpServletRequest request, HttpServletResponse response) throws Exception {
        loginService.selectLogin(request,response);
    }

    public void selectPhone(HttpServletRequest request, HttpServletResponse response) throws Exception {
        loginService.selectPhone(request,response);
    }

    public void insertUser(HttpServletRequest request, HttpServletResponse response) throws Exception {
        loginService.insertUser(request,response);
    }

    public void logout(HttpServletRequest request, HttpServletResponse response) throws Exception {
        loginService.logout(request,response);
    }
}
